package com.talent.mapper;

import com.talent.entities.dto.VaccOrder;
import com.talent.entities.result.CommonResult;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;

/**
 * @author 周意朗
 * Date: 2022/3/17
 * @since JDK 11
 */
@Mapper
@Repository
public interface VaccOrderMapper {
    /**
     * @param userId    用户id
     * @param pageIndex 分页索引下标
     * @return list of order
     */
    public CommonResult<ArrayList<VaccOrder>> findOrderByUserId(String userId, int pageIndex);

    /**
     * @param id
     * @return
     */
    public CommonResult<VaccOrder> findOrderByOrderId(Long id);
}
